package chapter6;

public class StaticInnerClassTest {
    private int prop1 = 5;
    private static int prop2 = 9;
    static class StaticInnerClass {
        private static int age;
        public void accessOuterProp() {
            //此代码编译错误，静态内部类只能访问外部类的静态成员
            //System.out.println(prop1);
            System.out.println(prop2);
        }
    }
}
